package com.york.jobmew.practice.server.dao;

import com.york.jobmew.practice.server.entity.po.PracticeSetDetailPO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PracticeSetDetailDao {

    /**
     * 新增套题
     */
    int add(PracticeSetDetailPO po);

    /**
     * 根据套题Id获取
     *
     * @param setId 套题id
     * @return
     */
    List<PracticeSetDetailPO> selectBySetId(Long setId);

    /**
     * 批量插入套题
     *
     * @param entities 批量套题
     */
    void batchInsert(@Param("entities") List<PracticeSetDetailPO> entities);

}